package com.example.demo.entity;
import com.alibaba.fastjson.annotation.JSONField;
//单向发送的信息，通过post请求发送，服务器只做转发
public class Order {
    @JSONField(name = "goodsId")
    private int goodsId;
    @JSONField(name = "num")
    private int num;
    @JSONField(name = "userId")
    private String userId;
    @JSONField(name = "orderState")
    private int orderState;
    @JSONField(name = "orderNo")
    private int orderNo;
    @JSONField(name = "startTime")
    private long startTime;

    public int getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(int orderNo) {
        this.orderNo = orderNo;
    }

    //普通信息类型:0
    public Order(int goodsId, int num, String userId,int orderState) {
        this.orderState = orderState;
        this.goodsId = goodsId;
        this.num = num;
        this.userId = userId;
    }

    public int getGoodsId() {
        return goodsId;
    }

    public int getNum() {
        return num;
    }

    public String getUserId() {
        return userId;
    }

    public void setGoodsId(int goodsId) {
        this.goodsId = goodsId;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }
    public int getOrderState() {
        return orderState;
    }

    public void setOrderState(int orderState) {
        this.orderState = orderState;
    }

    public long getStartTime() {
        return startTime;
    }

    public void setStartTime(long startTime) {
        this.startTime = startTime;
    }

}
